/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edi.dao;

import edi.entities.DepartmentEntity;
import edi.entities.DepartmentUserEntity;
import edi.entities.UserEntity;

import java.util.List;

public interface DepartmentUserDao extends CrudDao<DepartmentUserEntity> {
    

	List<DepartmentUserEntity> findByUser(UserEntity userEntity);

	DepartmentUserEntity findWithoutDepartmentByUser(UserEntity userEntity);
	List<DepartmentUserEntity> findWithoutSingleUsersByDepartment(DepartmentEntity departmentEntity);
}
